import request from "@/utils/request";

// 密码登录
export function login(loginIfo: any) {
    return request({
        url: '/login',
        method: 'post',
        data: loginIfo
    })
}

//发送验证码
export function sendCode(phone: string) {
    return request({
        url: '/phone-code',
        method: 'get',
        params: { phone }
    })
}